package pkg

func AliPay() {

	//String APP_ID = "线上应用同步到沙箱后的APPID，该APPID跟线上应用一致";
	//String APP_PRIVATE_KEY = "沙箱分配的默认应用私钥";
	//String ALIPAY_PUBLIC_KEY = "沙箱分配的默认支付宝公钥";
	//String BUYER_ID = "建议使用开发平台默认分配的沙箱账号下面的买家信息";
	//AlipayClient alipayClient = new DefaultAlipayClient("https://openapi-sandbox.dl.alipaydev.com/gateway.do",APP_ID,APP_PRIVATE_KEY,"json","GBK",ALIPAY_PUBLIC_KEY,"RSA2");
	//AlipayTradeCreateRequest request = new AlipayTradeCreateRequest();
	//request.setNotifyUrl("");
	//JSONObject bizContent = new JSONObject();
	//bizContent.put("out_trade_no", "20210817010101003X02");
	//bizContent.put("total_amount", 0.01);
	//bizContent.put("subject", "测试商品");
	//bizContent.put("buyer_id", BUYER_ID);
	//bizContent.put("timeout_express", "10m");
	//bizContent.put("product_code", "JSAPI_PAY");
	//request.setBizContent(bizContent.toString());
	//AlipayTradeCreateResponse response = alipayClient.execute(request);
	//if(response.isSuccess()){
	//	System.out.println("调用成功");
	//} else {
	//	System.out.println("调用失败");
	//}
}
